package com.kunbo.cn.dao.uflo;


import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.kunbo.cn.entity.uflo.entity.UploadLog;


/**
 * <p>
 * 上传文件记录表 Mapper 接口
 * </p>
 *
 * @author liuyu
 * @since 2018-01-25
 */
public interface UploadLogDao extends JpaRepository<UploadLog, Integer>{
	
	@Query( value = "from UploadLog", countQuery = "select count(*) from UploadLog" )  
	Page<UploadLog> getPage(Pageable pageable);
	
	@Query(value = "select * from upload_log where 1=1 order by id limit ?1,?2",nativeQuery=true  ) 
	List<UploadLog> getList(int start,int limit);
	
}
